<template>
  <div class="page has-navbar" v-nav="{ title: '购花中心', showBackButton: true, onBackButtonClick: back,showMenuButton: true,onMenuButtonClick: menu }">
    <div class="page-content text-center">
      <div id="wallpaper">
        <div class="imgLink">
          <router-link to="/details">
            <img src="../image/center/1.jpg" alt="">
          </router-link>
          <router-link to="/details">
            <img src="../image/center/2.jpg" alt="">
          </router-link>
          <router-link to="/details">
            <img src="../image/center/3.jpg" alt="">
          </router-link>
          <router-link to="/details">
            <img src="../image/center/4.jpg" alt="">
          </router-link>
          <router-link to="/details">
            <img src="../image/center/5.jpg" alt="">
          </router-link>
        </div>
        <div class="share">
          <div class="share-img">
            <div>
              <img src="../image/center/6.jpg" alt="">
            </div>
            <div>
              <img src="../image/center/7.jpg" alt="">
            </div>
          </div>
          <p>無 色 花 兿 | 感受一束花带给您的愉悦</p>
        </div>
        <div class="menuBotton">
          <MenuBotton></MenuBotton>
        </div>
      </div>
    </div>
    <FloatCart></FloatCart>
    <Manjian :show="show"></Manjian>
  </div>
</template>

<script>
    import FloatCart from '../components/FloatCart'
    import MenuBotton from '../components/MenuBotton'
    import Manjian from '../components/ManJian'
    export default {
      name: "ShopCenter",
      data(){
        return{
          show : 'show'
        }
      },
      computed : {
      },
      methods : {
        changeShow(){
          this.show = this.show === 'show' ? 'hidden' : 'show';
        },
        back() {
          $router.back('/')
        },
        menu(){
          console.log('菜单回调');
          this.changeShow();
          console.log(this.show);
        },
        menuClicked(menuIndex) {
          console.log(menuIndex)
        }
      },
      components : {
        FloatCart,
        MenuBotton,
        Manjian
      }
      ,
    }
</script>

<style scoped lang="less">
*{
  margin: 0;
  padding: 0;
}
.page-content{
  background: #ffffff;
}
.imgLink{
  img{
    width: 100%;
    margin-bottom: -5px;
  }
}
//分享
.share{
  margin: 30px 15px;
  margin-bottom: 70px;
  padding: 30px 15px;
  background: #ffffff;
  border: 1px solid #cccccc;
  position: relative;
  p{
    text-align: center;
    font-size: 18px;
  }
  .share-img{
    display: flex;
    justify-content: space-between;
    >div{
      width: 130px;
      img{
        width: 100%;
      }
    }
    >div:last-child{
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  }
}
</style>
